package com.feibiao.computer;

import java.util.Scanner;

public class Mul implements Compute {
    private double result;
    @Override
    public double compute() {
    	double operand1,operand2;
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入被乘数");
        operand1 = scanner.nextDouble();
        System.out.println("请输入乘数");
        operand2 = scanner.nextDouble();
        result = operand1 * operand2;
        return result;
    }
}
